package cn.ccit.entites.record;
/**
 * 
 * ClassName: PayOrderRecord <br/> 
 * Function: 结算单订单正式表. <br/> 
 * Reason: TODO ADD REASON(可选). <br/> 
 * date: 2016年11月9日 下午4:20:09 <br/> 
 * 
 * @author Administrator 
 * @version 1.0 
 * @since JDK 1.6
 */

public class PayOrderRecord extends BaseRecord {
	private String note;
	private String enumType;
	private int enumCode;
	private String enumName;
	private int diningTableID;
	private String diningTableName;
	
	private static PayOrderRecord payOrder=null;
	
	
	public static PayOrderRecord getPayOrderFromDishOrder(DishOrderRecord dishOrder) {
		 if(payOrder==null){
			 payOrder=new PayOrderRecord();
		 }
		 payOrder.setId(dishOrder.getId());
		 payOrder.setCreatTime(dishOrder.getCreatTime());
		 payOrder.setCreatUid(dishOrder.getCreatUid());
		 payOrder.setCreatUname(dishOrder.getCreatUname());
		 payOrder.setDiningTableID(dishOrder.getDiningTableID());
		 payOrder.setDiningTableName(dishOrder.getDiningTableName());
		 payOrder.setEnumCode(dishOrder.getEnumCode());
		 payOrder.setEnumName(dishOrder.getEnumName());
		 payOrder.setEnumType(dishOrder.getEnumType());
		 payOrder.setLastModfiyTime(dishOrder.getLastModfiyTime());
		 payOrder.setLastModfiyUid(dishOrder.getLastModfiyUid());
		 payOrder.setLastModfiyUname(dishOrder.getLastModfiyUname());
		 payOrder.setName(dishOrder.getName());
		 payOrder.setOrderDate(dishOrder.getOrderDate());
		 payOrder.setOrderMonth(dishOrder.getOrderMonth());
		 payOrder.setOrderYear(dishOrder.getOrderYear());
		 payOrder.setSerialsNumber(dishOrder.getSerialsNumber());
		 payOrder.setNote(dishOrder.getNote());
		 payOrder.setTid(dishOrder.getTid());
		 payOrder.setTname(dishOrder.getTname());
		 payOrder.setPrice(dishOrder.getPrice());
		 return payOrder;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public String getEnumType() {
		return enumType;
	}
	public void setEnumType(String enumType) {
		this.enumType = enumType;
	}
	
	public String getEnumName() {
		return enumName;
	}
	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}
	public int getDiningTableID() {
		return diningTableID;
	}
	public void setDiningTableID(int diningTableID) {
		this.diningTableID = diningTableID;
	}
	public String getDiningTableName() {
		return diningTableName;
	}
	public void setDiningTableName(String diningTableName) {
		this.diningTableName = diningTableName;
	}
	public int getEnumCode() {
		return enumCode;
	}
	public void setEnumCode(int enumCode) {
		this.enumCode = enumCode;
	}
	
}
